package com.tangding.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @description 
 *
 * @author Ranger
 * @version 2017年12月21日_上午10:45:36
 *
 */
@Component
public class Config {
	
	public static String hproseAsClientHost;
	public static String hproseAsServerHost;
	public static String hproseAsServer4GameServerHost;
	public static String nettyServerHost;
	public static int nettyServerPort;
	public static String AES128_KEY;
 	
	@Value("${aes128_key:WXIEHCugb8hnxGpr}")
	public void setAES128_KEY(String aES128_KEY) {
		AES128_KEY = aES128_KEY;
	}
	
	@Value("${hporse_as_client_host:tcp4://127.0.0.1:3456}")
	public void setHproseAsClientHost(String hproseAsClientHost) {
		Config.hproseAsClientHost = hproseAsClientHost;
	}
	
	@Value("${hporse_as_server_host:tcp4://0.0.0.0:4321}")
	public void setHproseAsServerHost(String hproseAsServerHost) {
		Config.hproseAsServerHost = hproseAsServerHost;
	}
	
	@Value("${hporse_as_server_4_game_server_host:tcp4://0.0.0.0:4320}")
	public void setHproseAsServer4GameServerHostHost(String host) {
		Config.hproseAsServer4GameServerHost = host;
	}

	@Value("${netty_server_host:0.0.0.0}")
	public void setNettyServerHost(String nettyServerHost) {
		Config.nettyServerHost = nettyServerHost;
	}

	@Value("${netty_server_port:4322}")
	public void setNettyServerPort(int nettyServerPort) {
		Config.nettyServerPort = nettyServerPort;
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	public static final String godAccount = "tdwh";
	public static final int godRoleId = -999;
}
